package core
{
/**
 * 支付计算
 * @author daichangxin
 */
public class CostCount
{
	private var _strategy:IStrategy;
	
	public function CostCount(strategyName:String)
	{
		setCostStrategy(strategyName);
	}
	
	public function countCost(price:Number):Number
	{
		return _strategy.countCost(price);
	}
	
	public function setCostStrategy(strategyName:String):void
	{
		_strategy = StrategyManager.getInstance().getStrategy(strategyName);
	}
}
}
